import request from '@/utils/request'

// 查询管理制度文本与组织结构图列表
export function listWeightManagement(query) {
  return request({
    url: '/weight/weightManagement/list',
    method: 'get',
    params: query
  })
}

// 查询管理制度文本与组织结构图详细
export function getWeightManagement(id) {
  return request({
    url: '/weight/weightManagement/' + id,
    method: 'get'
  })
}

// 新增管理制度文本与组织结构图
export function addWeightManagement(data) {
  return request({
    url: '/weight/weightManagement',
    method: 'post',
    data: data
  })
}

// 修改管理制度文本与组织结构图
export function updateWeightManagement(data) {
  return request({
    url: '/weight/weightManagement',
    method: 'put',
    data: data
  })
}

// 删除管理制度文本与组织结构图
export function delWeightManagement(id) {
  return request({
    url: '/weight/weightManagement/' + id,
    method: 'delete'
  })
}

// 导出管理制度文本与组织结构图
export function exportWeightManagement(query) {
  return request({
    url: '/weight/weightManagement/export',
    method: 'get',
    params: query
  })
}
